home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Undo.idl < prev    next >
Encoding:
Text File  |  1997-01-01  |  1.8 KB  |  86 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _UNDO_
  4. #define _UNDO_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //==============================================================================
  11. // Classes defined in this interface
  12. //==============================================================================
  13.  
  14. interface  ODUndo;
  15.  
  16. //==============================================================================
  17. // Classes used by this interface
  18. //==============================================================================
  19.  
  20. interface  ODPart;
  21.  
  22.  
  23. //==============================================================================
  24. // ODUndo
  25. //==============================================================================
  26.  
  27. interface ODUndo :  ODObject
  28. {
  29.  
  30.  
  31.    void AddActionToHistory(in ODPart whichPart,
  32.                               in ODActionData actionData,
  33.                            in ODActionType actionType,
  34.                            in ODName undoActionLabel,
  35.                            in ODName redoActionLabel);
  36.  
  37.    void Undo();
  38.  
  39.    void Redo();
  40.  
  41.    void MarkActionHistory();
  42.  
  43.    void ClearActionHistory(in ODRespectMarksChoices respectMarks);
  44.  
  45.    void ClearRedoHistory();
  46.  
  47.    ODBoolean PeekUndoHistory(out ODPart part,
  48.                                 out ODActionData actionData,
  49.                              out ODActionType actionType,
  50.                              out ODName actionLabel);
  51.   
  52.    ODBoolean PeekRedoHistory(out ODPart part,
  53.                                 out ODActionData actionData,
  54.                              out ODActionType actionType,
  55.                              out ODName actionLabel);
  56.                              
  57.     void AbortCurrentTransaction();
  58.  
  59. #ifdef __SOMIDL__
  60.     implementation
  61.     {
  62.         majorversion = 1; minorversion = 0;
  63.  
  64.           functionprefix = ODUndo;
  65.  
  66.         override:
  67.             somUninit;
  68.         
  69.         releaseorder:
  70.             InitUndo,
  71.             AddActionToHistory,
  72.             Undo,
  73.             Redo,
  74.             MarkActionHistory,
  75.             ClearActionHistory,
  76.             ClearRedoHistory,
  77.             PeekUndoHistory,
  78.             PeekRedoHistory,
  79.             AbortCurrentTransaction    ;
  80.  
  81.     };
  82. #endif
  83. };
  84.  
  85. #endif // _UNDO_
  86.